
/**
 * created on 2012-03-21
 * @author  qiujz
 * @version 1.0
 *
 * Copyright (c)  Founder Software (Suzhou) Co., Ltd.  2012
 *  All rights reserved.
 *
 * 
 * ================================================================
 * Change Revision
 * ---------------------------------------------------------------
 *    DATE                BY                   COMMENT
 * ---------------------------------------------------------------
 * 2012-03-21         qiujz                Create class
 * 
 *
 * ================================================================
 */
package com.founder.bm.model
{
	import com.founder.framework.base.BaseModel;
	import com.founder.framework.base.BaseQueryParameter;
	import com.founder.framework.base.BaseVo;
	import com.founder.framework.interfaces.IModelable;
	import com.founder.bm.entity.LoginUserQueryParameter;
	import com.founder.bm.entity.LoginUserVo;
	import flash.events.IEventDispatcher;
	import mx.collections.ArrayCollection;
	
	/**
	 * 页面数据模型对象
	 * @author qiujz
	 */
	[Bindable]
	public class LoginUserModel extends BaseModel implements IModelable
	{
		
		/**
		 * 构造函数
		 */
		public function LoginUserModel(target:IEventDispatcher=null)
		{
			super(target);
			loginUserQueryParameter = new LoginUserQueryParameter();
		}

		public var loginUser:LoginUserVo;

		public var loginUserQueryParameter:LoginUserQueryParameter;
		
		
		/**
		 * 获取运行时查询参数对象
		 */
		public function get runtimeQueryParameter():BaseQueryParameter
		{
			return loginUserQueryParameter;
		}

		/**
		 * 设置运行时查询参数对象
		 */
		public function set runtimeQueryParameter(queryParameter:BaseQueryParameter):void
		{			
			loginUserQueryParameter = queryParameter as LoginUserQueryParameter;
		}
		
		/**
		 * 获取运行时实体对象
		 */
		public function get runtimeVo():BaseVo
		{
			return loginUser;
		}

		/**
		 * 设置运行时实体对象
		 */
		public function set runtimeVo(vo:BaseVo):void
		{
			loginUser = vo as LoginUserVo;
		}
		
		/**
		 * 释放模型对象资源引用
		 */
		public function doDispose():void
		{
			loginUser = null;
			loginUserQueryParameter = null;
			dataList = null;
		}
	}
}
